package org.jeecg.modules.demo.projectroom.service;

import org.jeecg.modules.demo.projectroom.entity.ZnzfRoom;
import org.jeecg.modules.demo.projectroom.entity.ZnzfProject;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.demo.projectroom.entity.ZnzfRoomStateParam;
import org.jeecg.modules.demo.projectroom.entity.ZnzfStationParam;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;
import java.util.Map;

/**
 * @Description: 项目表
 * @Author: jeecg-boot
 * @Date:   2022-04-09
 * @Version: V1.0
 */
public interface IZnzfProjectService extends IService<ZnzfProject> {

	/**
	 * 添加一对多
	 * 
	 */
	public void saveMain(ZnzfProject znzfProject,List<ZnzfRoom> znzfRoomList) ;
	
	/**
	 * 修改一对多
	 * 
	 */
	public void updateMain(ZnzfProject znzfProject,List<ZnzfRoom> znzfRoomList);
	
	/**
	 * 删除一对多
	 */
	public void delMain (String id);
	
	/**
	 * 批量删除一对多
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);

	int emptyTurnId(ZnzfProject znzfProject);

	/**
	 * 统计各站段房源情况
	 * @return
	 */
	Map<String, Integer> countRoomCntByStation();


	/**
	 * 查询某个站段的房源具体情况（返回房间类型，状态，数量）
	 * @param station
	 * @return
	 */
	List<ZnzfStationParam> countRoomTypeCntByStation(String station);

	List<ZnzfProject> searchsByCity(String city);

}
